package com.lu.sb210408.controller;

import com.lu.sb210408.domain.Server;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 服务器监控
 *
 * @author ruoyi
 */
@Controller
@RequestMapping("")
public class ServerController {

    @GetMapping("server")
    public String server(ModelMap mmap) throws Exception {

        Server server = new Server();

        server.copyTo();

        mmap.put("server", server);

        return "server";
    }
}
